From 20ad53b196b3a11969e6891f70647788a339605a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 18 Jun 2010 14:08:57 +0100 Subject: [PATCH] ia64: Fix xc_save error reporting This is the patch for error reporting on ia64 that has a special handling in comparison with i386/x86_64 platforms. This is pretty straight-forward just to fail on "cannot map mfn page" message instead of continue since the memory is not being correctly mapped using the xc_map_foreign_range() function. From: Michal Novotny Signed-off-by: Keir Fraser --- tools/libxc/ia64/xc_ia64_linux_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/ia64/xc_ia64_linux_save.c b/tools/libxc/ia64/xc_ia64_linux_save.c index aee0154e5f..24a1dbe3c8 100644 --- a/tools/libxc/ia64/xc_ia64_linux_save.c +++ b/tools/libxc/ia64/xc_ia64_linux_save.c @@ -647,7 +647,7 @@ xc_domain_save(xc_interface *xc_handle, int io_fd, uint32_t dom, uint32_t max_it fprintf(stderr, "cannot map mfn page %lx gpfn %lx: %s\n", xc_ia64_p2m_mfn(&p2m_table, N), N, safe_strerror(errno)); - continue; + goto out; } if (write_exact(io_fd, &N, sizeof(N))) { -- 2.30.2